// 1.设置集合的结构
const { Schema, model } = require('mongoose');
const usersSchema = new Schema({
  username: String,
  password: String
},{versionKey:false});
// 2.这是数据模型，同时链接数据集合
// const usersModel = model("usersModel", usersSchema, "userss");

module.exports.usersModel = model("usersModel", usersSchema, "userss") ;